﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls">

	<!--
        Esta animação só está aqui porque o Blend não aceita DynamicResource com Storyboard
    -->

	<!--BEGIN TEXTBOX-->
	<Storyboard x:Key="AnimationTextBoxWatermarkEnter" TargetName="Watermark" TargetProperty="Opacity">
		<DoubleAnimation Duration="0:0:0.3" To="0.4"/>
	</Storyboard>

	<Storyboard x:Key="AnimationTextBoxWatermarkLeave" TargetName="Watermark" TargetProperty="Opacity">
		<DoubleAnimation Duration="0:0:0.4"/>
	</Storyboard>

	<Storyboard x:Key="AnimationTextBoxWatermarkTextEnter" TargetName="Watermark" TargetProperty="Opacity">
		<DoubleAnimation Duration="0:0:0.3" From="0.4" To="0"/>
	</Storyboard>

	<Storyboard x:Key="AnimationTextBoxWatermarkTextLeave" TargetName="Watermark" TargetProperty="Opacity">
		<DoubleAnimation Duration="0:0:0.4"/>
	</Storyboard>
	<!--END TEXTBOX-->

	<!--BEGIN TEXTBOX-->
	<Style x:Key="ControlTextBoxBase" TargetType="{x:Type Controls:SinacorTextBox}">
		<Setter Property="BorderBrush" Value="{DynamicResource BrushTextBoxBorder}"/>
		<Setter Property="Foreground" Value="{DynamicResource BrushTextBoxForeground}"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="HorizontalContentAlignment" Value="Left"/>
		<Setter Property="Padding" Value="5,4,6,0"/>
		<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
		<Setter Property="AllowDrop" Value="True"/>
		<Setter Property="FontFamily" Value="Tahoma"/>
		<Setter Property="FontSize" Value="11"/>
		<Setter Property="FontWeight" Value="Normal"/>
		<Setter Property="FontStyle" Value="Normal"/>
		<Setter Property="Height" Value="21"/>
		<Setter Property="Width" Value="100"/>
		<Setter Property="TextWrapping" Value="NoWrap"/>
		<Setter Property="TextAlignment" Value="Left"/>
		<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
		<Setter Property="Background" Value="{DynamicResource BrushTextBoxBackground}"/>
		<Setter Property="Border.CornerRadius" Value="4"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Controls:SinacorTextBox}">
					<Border CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
						<Grid>
							<Border x:Name="Border" SnapsToDevicePixels="False" CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}">
								<Label x:Name="Watermark" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" Background="Transparent" Content="{TemplateBinding WatermarkText}" Foreground="{DynamicResource BrushTextBoxWatermarkForeground}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Padding="2,1,1,1" Opacity="0.8" FontStyle="Italic"/>
							</Border>
							<Controls:SinacorScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
						</Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsReadOnly" Value="True">
							<Setter Property="BorderBrush" Value="{DynamicResource BrushTextBoxBorderDisabled}" TargetName="Border"/>
							<Setter Property="Background" Value="{DynamicResource BrushTextBoxBackgroundDisabled}" TargetName="Border"/>
							<Setter Property="Foreground" Value="{DynamicResource BrushTextBoxForegroundDisabled}"/>
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter Property="BorderBrush" Value="{DynamicResource BrushTextBoxBorderDisabled}" />
							<Setter Property="Background" Value="{DynamicResource BrushTextBoxBackgroundDisabled}" />
							<Setter Property="Foreground" Value="{DynamicResource BrushTextBoxForegroundDisabled}"/>
						</Trigger>
						<Trigger Property="TextWrapping" Value="Wrap">
							<Setter Property="Height" Value="50"/>
							<Setter Property="AcceptsReturn" Value="True"/>
							<Setter Property="VerticalAlignment" Value="Top" TargetName="Watermark"/>
							<Setter Property="Margin" Value="0,2.2,0,0" TargetName="Watermark"/>
						</Trigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="HasText" Value="False" />
								<Condition Property="IsFocused" Value="True" />
							</MultiTrigger.Conditions>
							<MultiTrigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkEnter}"/>
							</MultiTrigger.EnterActions>
							<MultiTrigger.ExitActions>
								<BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkLeave}"/>
							</MultiTrigger.ExitActions>
						</MultiTrigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="HasText" Value="True" />
							</MultiTrigger.Conditions>
							<MultiTrigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkTextEnter}"/>
							</MultiTrigger.EnterActions>
							<MultiTrigger.ExitActions>
								<BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkTextLeave}"/>
							</MultiTrigger.ExitActions>
						</MultiTrigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="ErrorTemplate">
			<Setter.Value>
				<ControlTemplate>
					<Border BorderBrush="{DynamicResource BrushTextBoxBorderError}" BorderThickness="1" CornerRadius="4" HorizontalAlignment="Left" Width="{Binding ActualWidth, ElementName=PART_Content}" Height="{Binding ActualHeight, ElementName=PART_Content}">
						<AdornedElementPlaceholder x:Name="PART_Content" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="-1"/>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<!--END TEXTBOX-->

	<Style TargetType="{x:Type Controls:SinacorCepTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
	<Style TargetType="{x:Type Controls:SinacorCnpjTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
	<Style TargetType="{x:Type Controls:SinacorCpfTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
	<Style TargetType="{x:Type Controls:SinacorCvmTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
	<Style TargetType="{x:Type Controls:SinacorEmailTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
	<Style TargetType="{x:Type Controls:SinacorInvestidorEstrangeiroTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
	<Style TargetType="{x:Type Controls:SinacorNyseTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
	<Style TargetType="{x:Type Controls:SinacorTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
	<Style TargetType="{x:Type Controls:SinacorFilteredTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>

	<!--Numéricos-->
	<Style TargetType="{x:Type Controls:SinacorDecimalTextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
		<Setter Property="TextAlignment" Value="Right"/>
	</Style>
	<Style TargetType="{x:Type Controls:SinacorDoubleTextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
		<Setter Property="TextAlignment" Value="Right"/>
	</Style>
	<Style TargetType="{x:Type Controls:SinacorInt16TextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
		<Setter Property="TextAlignment" Value="Right"/>
	</Style>
	<Style TargetType="{x:Type Controls:SinacorInt32TextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
		<Setter Property="TextAlignment" Value="Right"/>
	</Style>
	<Style TargetType="{x:Type Controls:SinacorInt64TextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
		<Setter Property="TextAlignment" Value="Right"/>
	</Style>

	<!--**************************************************************************************
    Estilos dos controles do SinacorDataGrid 
    **************************************************************************************-->

	<Style x:Key="ControlDataGridSinacorTextBox" TargetType="{x:Type Controls:SinacorTextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="BorderThickness" Value="0"/>
		<Setter Property="Width" Value="{Binding ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type FrameworkElement}}}"/>
		<Setter Property="HorizontalAlignment" Value="Stretch"/>
		<Setter Property="Padding" Value="1,4.5,1.5,1"/>
		<Setter Property="Border.CornerRadius" Value="0"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Controls:SinacorTextBox}">
					<Border CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
						<Grid>
							<Border x:Name="Border" SnapsToDevicePixels="False" CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}">
								<Label x:Name="Watermark" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" Background="Transparent" Content="{TemplateBinding WatermarkText}" Foreground="{DynamicResource BrushTextBoxWatermarkForeground}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Padding="2,1,1,1" Opacity="0.8" FontStyle="Italic"/>
							</Border>
							<Controls:SinacorScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
						</Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsReadOnly" Value="True">
							<Setter Property="BorderBrush" Value="Transparent" TargetName="Border"/>
							<Setter Property="Background" Value="Transparent" TargetName="Border"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="ErrorTemplate">
			<Setter.Value>
				<ControlTemplate>
					<Border BorderBrush="{DynamicResource BrushTextBoxBorderError}" BorderThickness="1" CornerRadius="0" HorizontalAlignment="Left" Width="{Binding ActualWidth, ElementName=PART_Content}" Height="{Binding ActualHeight, ElementName=PART_Content}">
						<AdornedElementPlaceholder x:Name="PART_Content" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="-1"/>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ControlDataGridSinacorCepTextBox" TargetType="{x:Type Controls:SinacorCepTextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}"/>
	<Style x:Key="ControlDataGridSinacorCnpjTextBox" TargetType="{x:Type Controls:SinacorCnpjTextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}"/>

	<Style x:Key="ControlDataGridSinacorCpfTextBox" TargetType="{x:Type Controls:SinacorCpfTextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}"/>
	<Style x:Key="ControlDataGridSinacorCvmTextBox" TargetType="{x:Type Controls:SinacorCvmTextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}"/>
	<Style x:Key="ControlDataGridSinacorEmailTextBox" TargetType="{x:Type Controls:SinacorEmailTextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}"/>
	<Style x:Key="ControlDataGridSinacorInvestidorEstrangeiroTextBox" TargetType="{x:Type Controls:SinacorInvestidorEstrangeiroTextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}"/>
	<Style x:Key="ControlDataGridSinacorNyseTextBox" TargetType="{x:Type Controls:SinacorNyseTextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}"/>
	<Style x:Key="ControlDataGridSinacorFilteredTextBox" TargetType="{x:Type Controls:SinacorFilteredTextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}"/>

	<!--Numéricos-->
	<Style x:Key="ControlDataGridSinacorDecimalTextBox" TargetType="{x:Type Controls:SinacorDecimalTextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}">
		<Setter Property="TextAlignment" Value="Right"/>
		<Setter Property="Border.CornerRadius" Value="0"/>
	</Style>
	<Style x:Key="ControlDataGridSinacorDoubleTextBox" TargetType="{x:Type Controls:SinacorDoubleTextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}">
		<Setter Property="TextAlignment" Value="Right"/>
		<Setter Property="Border.CornerRadius" Value="0"/>
	</Style>
	<Style x:Key="ControlDataGridSinacorInt16TextBox" TargetType="{x:Type Controls:SinacorInt16TextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}">
		<Setter Property="TextAlignment" Value="Right"/>
		<Setter Property="Border.CornerRadius" Value="0"/>
	</Style>
	<Style x:Key="ControlDataGridSinacorInt32TextBox" TargetType="{x:Type Controls:SinacorInt32TextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}">
		<Setter Property="TextAlignment" Value="Right"/>
		<Setter Property="Border.CornerRadius" Value="0"/>
	</Style>
	<Style x:Key="ControlDataGridSinacorInt64TextBox" TargetType="{x:Type Controls:SinacorInt64TextBox}" BasedOn="{StaticResource ControlDataGridSinacorTextBox}">
		<Setter Property="TextAlignment" Value="Right"/>
		<Setter Property="Border.CornerRadius" Value="0"/>
	</Style>

	<!--**************************************************************************************
    Estilos dos controles com destaque
    **************************************************************************************-->
	<!--Begin Destaque-->
	<Style x:Key="ControlTextBoxBaseHeadline" TargetType="{x:Type Controls:SinacorTextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
		<Setter Property="Background" Value="{DynamicResource BrushTextBoxBackgroundHeadline}"/>
		<Setter Property="BorderBrush" Value="{DynamicResource BrushTextBox1}"/>
		<Setter Property="Foreground" Value="{DynamicResource BrushTextBox2}"/>
		<Setter Property="IsReadOnly" Value="True"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="HorizontalContentAlignment" Value="Left"/>
		<Setter Property="Padding" Value="5,1,6,0"/>
		<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
		<Setter Property="AllowDrop" Value="True"/>
		<Setter Property="FontFamily" Value="Tahoma"/>
		<Setter Property="FontSize" Value="11"/>
		<Setter Property="FontWeight" Value="Normal"/>
		<Setter Property="FontStyle" Value="Normal"/>
		<Setter Property="Height" Value="18"/>
		<Setter Property="Width" Value="100"/>
		<Setter Property="TextWrapping" Value="NoWrap"/>
		<Setter Property="TextAlignment" Value="Left"/>
		<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Controls:SinacorTextBox}">
					<Border CornerRadius="4" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="1" SnapsToDevicePixels="False">
						<Controls:SinacorScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="ControlCepTextBoxHeadline" TargetType="{x:Type Controls:SinacorCepTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
	<Style x:Key="ControlCnpjTextBoxHeadline" TargetType="{x:Type Controls:SinacorCnpjTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
	<Style x:Key="ControlCpfTextBoxHeadline" TargetType="{x:Type Controls:SinacorCpfTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
	<Style x:Key="ControlCvmTextBoxHeadline" TargetType="{x:Type Controls:SinacorCvmTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
	<Style x:Key="ControlEmailTextBoxHeadline" TargetType="{x:Type Controls:SinacorEmailTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
	<Style x:Key="ControlInvestidorEstrangeiroTextBoxHeadline" TargetType="{x:Type Controls:SinacorInvestidorEstrangeiroTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
	<Style x:Key="ControlNyseTextBoxHeadline" TargetType="{x:Type Controls:SinacorNyseTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
	<Style x:Key="ControlTextBoxHeadline" TargetType="{x:Type Controls:SinacorTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
	<Style x:Key="ControlFilteredTextBoxHeadline" TargetType="{x:Type Controls:SinacorFilteredTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>

	<!--Numéricos-->
	<Style x:Key="ControlDecimalTextBoxHeadline" TargetType="{x:Type Controls:SinacorDecimalTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
		<Setter Property="TextAlignment" Value="Right"/>

	</Style>
	<Style x:Key="ControlDoubleTextBoxHeadline" TargetType="{x:Type Controls:SinacorDoubleTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
		<Setter Property="TextAlignment" Value="Right"/>

	</Style>
	<Style x:Key="ControlInt16TextBoxHeadline" TargetType="{x:Type Controls:SinacorInt16TextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
		<Setter Property="TextAlignment" Value="Right"/>

	</Style>
	<Style x:Key="ControlInt32TextBoxHeadline" TargetType="{x:Type Controls:SinacorInt32TextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
		<Setter Property="TextAlignment" Value="Right"/>

	</Style>
	<Style x:Key="ControlInt64TextBoxHeadline" TargetType="{x:Type Controls:SinacorInt64TextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
		<Setter Property="TextAlignment" Value="Right"/>

	</Style>
	<!--End Destaque-->

	<!--BEGIN CLIENTE ESPECIAL-->

	<!--
        As Triggers desta sessão foram copiadas do controle acima por motivo de urgencia
        TODO: Descobrir uma forma de referenciar as triggers em um resource comum, de forma a reduzir a duplicidade
    -->

	<!--Normal-->
	<Style x:Key="ControlTextBoxSpecialClient" TargetType="{x:Type Controls:SinacorTextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Controls:SinacorTextBox}">
					<Border CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
						<Grid>
							<Border x:Name="Border" SnapsToDevicePixels="False" CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}">
								<Label x:Name="Watermark" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" Background="Transparent" Content="{TemplateBinding WatermarkText}" Foreground="{DynamicResource BrushTextBoxWatermarkForeground}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Padding="2,1,1,1" Opacity="0.8" FontStyle="Italic"/>
							</Border>
							<Grid Width="{TemplateBinding Width}" Margin="3,0,3,0">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="*"/>
								</Grid.ColumnDefinitions>

								<Path x:Name="TextBoxIconSpecialClient" Grid.Column="0" Width="12.171" Height="12.823" Stretch="Fill" Fill="{DynamicResource BrushSpecialClientIcon}" Data="{DynamicResource IconSpecialClient}" />
								<Controls:SinacorScrollViewer x:Name="PART_ContentHost" Grid.Column="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="Auto" Margin="0,0,3,0" />
							</Grid>
						</Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsReadOnly" Value="True">
							<Setter Property="BorderBrush" Value="{DynamicResource BrushTextBoxBorderDisabled}" TargetName="Border"/>
							<Setter Property="Background" Value="{DynamicResource BrushTextBoxBackgroundDisabled}" TargetName="Border"/>
							<Setter Property="Foreground" Value="{DynamicResource BrushTextBoxForegroundDisabled}"/>
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter Property="BorderBrush" Value="{DynamicResource BrushTextBoxBorderDisabled}" TargetName="Border"/>
							<Setter Property="Background" Value="{DynamicResource BrushTextBoxBackgroundDisabled}" TargetName="Border"/>
							<Setter Property="Foreground" Value="{DynamicResource BrushTextBoxForegroundDisabled}"/>
						</Trigger>
						<Trigger Property="TextWrapping" Value="Wrap">
							<Setter Property="Height" Value="50"/>
							<Setter Property="AcceptsReturn" Value="True"/>
							<Setter Property="VerticalAlignment" Value="Top" TargetName="Watermark"/>
							<Setter Property="Margin" Value="0,2.2,0,0" TargetName="Watermark"/>
							<Setter Property="VerticalAlignment" Value="Top" TargetName="TextBoxIconSpecialClient" />
							<Setter Property="Margin" Value="0,2.2,0,0" TargetName="TextBoxIconSpecialClient"/>
						</Trigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="HasText" Value="False" />
								<Condition Property="IsFocused" Value="True" />
							</MultiTrigger.Conditions>
							<MultiTrigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkEnter}"/>
							</MultiTrigger.EnterActions>
							<MultiTrigger.ExitActions>
								<BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkLeave}"/>
							</MultiTrigger.ExitActions>
						</MultiTrigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="HasText" Value="True" />
							</MultiTrigger.Conditions>
							<MultiTrigger.EnterActions>
								<BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkTextEnter}"/>
							</MultiTrigger.EnterActions>
							<MultiTrigger.ExitActions>
								<BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkTextLeave}"/>
							</MultiTrigger.ExitActions>
						</MultiTrigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--Destaque-->
	<Style x:Key="ControlTextBoxSpecialClientHeadline" TargetType="{x:Type Controls:SinacorTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Controls:SinacorTextBox}">
					<Border CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
						<Grid Width="{TemplateBinding Width}" Margin="3,0,3,0">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*"/>
							</Grid.ColumnDefinitions>

							<Path x:Name="TextBoxIconSpecialClient" Grid.Column="0" Width="12.171" Height="12.823" Stretch="Fill" Fill="{DynamicResource BrushSpecialClientIcon}" Data="{DynamicResource IconSpecialClient}" />
							<Controls:SinacorScrollViewer x:Name="PART_ContentHost" Grid.Column="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="Auto" Margin="0,0,3,0"/>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--END CLIENTE ESPECIAL-->
</ResourceDictionary>